﻿package com.wandian.model.http
{
	import com.wandian.data.GameData;
	
	import flash.net.Responder;

    public class RoomData extends ServerConfig
    {
        private var objResponse:Object;

        public function RoomData() : void
        {
            return;
        }

        public function requestRoomListByType(type:String, responseFun:Object) : void
        {
            this.objResponse = responseFun;
            this.objConnect.call("Aroom.getRoomList", new Responder(this.responseRoomListByType, this.serverFault), {sesskey:GameData.sesskey, data:{type:type}});
            return;
        }

        public function responseRoomListByType(param1:Object) : void
        {
            this.objResponse.responsetRoomInfoByType(param1);
            return;
        }

        public function requestRoomPlayerData(roomid:int, fun:Function) : void
        {
            this.objConnect.call("Aroom.getRoomInfo", new Responder(fun, this.serverFault), {sesskey:GameData.sesskey, data:{roomid:roomid}});
            return;
        }

        public function responseRoomPlayerData(param1:Object) : void
        {
            this.objResponse.responseRoomPlayerData(param1);
            return;
        }

    }
}
